package signaturefiles.hash;


public class DEKHash implements Hash {

	@Override
	public long getHash(String str) {
		long hash = str.length();

		for (int i = 0; i < str.length(); i++) {
			hash = ((hash << 5) ^ (hash >> 27)) ^ str.charAt(i);
		}

		return hash;
	}

}
